home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
DBVGAL17.ARJ
/
SRC_ASM.ARJ
/
NORMAL.ASM
< prev
next >
Wrap
Assembly Source File
|
1992-01-25
|
717b
|
32 lines
name normal
; char huge *normalize(char far *);
;
ARGS equ word ptr [bp+08]
ARGO equ word ptr [bp+06]
NORMAL_TEXT segment byte public 'CODE'
public _normalize
assume cs:NORMAL_TEXT
_normalize proc far
push bp
mov bp,sp
; Line 8
mov dx,ARGS
mov ax,ARGO
; Line 9
cmp ax,15
jbe @1 ; if the offset's less than 16, out
; Line 10
mov cx,4
shr ax,cl
add dx,ax
mov ax,ARGO
and ax,0fh
@1:
pop bp
ret
_normalize endp
NORMAL_TEXT ends
end